package tiandang.core.model;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

public class Manager {
  private Integer id;

  @NotBlank(message = "团长姓名不能为空")
  private String name;

  @NotBlank(message = "手机号不能为空")
  private String phone;

  @NotBlank(message = "地址不能为空")
  private String address;

  @NotBlank(message = "负责配货地址不能为空")
  private String manageAddress;

  private BigDecimal rewardMoney;

  private BigDecimal frozenMoney;

  private BigDecimal nobalanceMoney;

  // 0正常 1冻结
  private Byte status;

  @NotBlank(message = "头像不能为空")
  private String imgUrl;

  private String imgName;

  private String openid;

  private Integer managerApplyId;

  public Integer getManagerApplyId() {
    return managerApplyId;
  }

  public void setManagerApplyId(Integer managerApplyId) {
    this.managerApplyId = managerApplyId;
  }

  public String getOpenid() {
    return openid;
  }

  public void setOpenid(String openid) {
    this.openid = openid;
  }

  public String getImgUrl() {
    return imgUrl;
  }

  public void setImgUrl(String imgUrl) {
    this.imgUrl = imgUrl;
  }

  public String getImgName() {
    return imgName;
  }

  public void setImgName(String imgName) {
    this.imgName = imgName;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone == null ? null : phone.trim();
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address == null ? null : address.trim();
  }

  public String getManageAddress() {
    return manageAddress;
  }

  public void setManageAddress(String manageAddress) {
    this.manageAddress = manageAddress == null ? null : manageAddress.trim();
  }

  public BigDecimal getRewardMoney() {
    return rewardMoney;
  }

  public void setRewardMoney(BigDecimal rewardMoney) {
    this.rewardMoney = rewardMoney;
  }

  public BigDecimal getFrozenMoney() {
    return frozenMoney;
  }

  public void setFrozenMoney(BigDecimal frozenMoney) {
    this.frozenMoney = frozenMoney;
  }

  public BigDecimal getNobalanceMoney() {
    return nobalanceMoney;
  }

  public void setNobalanceMoney(BigDecimal nobalanceMoney) {
    this.nobalanceMoney = nobalanceMoney;
  }

  public Byte getStatus() {
    return status;
  }

  public void setStatus(Byte status) {
    this.status = status;
  }
}